package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizQitasheshijishupingdingMapper;
import com.manage.project.biz.domain.BizQitasheshijishupingding;
import com.manage.project.biz.service.IBizQitasheshijishupingdingService;

/**
 Service业务层处理
 *
 * @author liutao
 *
 */
@Service
public class BizQitasheshijishupingdingServiceImpl implements IBizQitasheshijishupingdingService
{
    @Autowired
    private BizQitasheshijishupingdingMapper bizQitasheshijishupingdingMapper;

    /**
     * 查询其他设施技术评定
     *
     * @param id 其他设施技术评定主键
     * @return 其他设施技术评定
     */
    @Override
    public BizQitasheshijishupingding selectBizQitasheshijishupingdingById(Long id)
    {
        return bizQitasheshijishupingdingMapper.selectBizQitasheshijishupingdingById(id);
    }

    /**
     * 查询其他设施技术评定列表
     *
     * @param bizQitasheshijishupingding 其他设施技术评定
     * @return 其他设施技术评定
     */
    @Override
    public List<BizQitasheshijishupingding> selectBizQitasheshijishupingdingList(BizQitasheshijishupingding bizQitasheshijishupingding)
    {
        return bizQitasheshijishupingdingMapper.selectBizQitasheshijishupingdingList(bizQitasheshijishupingding);
    }

    /**
     * 新增其他设施技术评定
     *
     * @param bizQitasheshijishupingding 其他设施技术评定
     * @return 结果
     */
    @Override
    public int insertBizQitasheshijishupingding(BizQitasheshijishupingding bizQitasheshijishupingding)
    {
        bizQitasheshijishupingding.setCreateTime(DateUtils.getNowDate());
        return bizQitasheshijishupingdingMapper.insertBizQitasheshijishupingding(bizQitasheshijishupingding);
    }

    /**
     * 修改其他设施技术评定
     *
     * @param bizQitasheshijishupingding 其他设施技术评定
     * @return 结果
     */
    @Override
    public int updateBizQitasheshijishupingding(BizQitasheshijishupingding bizQitasheshijishupingding)
    {
        bizQitasheshijishupingding.setUpdateTime(DateUtils.getNowDate());
        return bizQitasheshijishupingdingMapper.updateBizQitasheshijishupingding(bizQitasheshijishupingding);
    }

    /**
     * 批量删除其他设施技术评定
     *
     * @param ids 需要删除的其他设施技术评定主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshijishupingdingByIds(Long[] ids)
    {
        return bizQitasheshijishupingdingMapper.deleteBizQitasheshijishupingdingByIds(ids);
    }

    /**
     * 删除其他设施技术评定信息
     *
     * @param id 其他设施技术评定主键
     * @return 结果
     */
    @Override
    public int deleteBizQitasheshijishupingdingById(Long id)
    {
        return bizQitasheshijishupingdingMapper.deleteBizQitasheshijishupingdingById(id);
    }
}
